<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <div class="itemtitle">
        <h3>{$Think.lang.manage_banning}</h3>
        <ul class="tab1">
            <li class="current"><a href="__URL__/banUser"><span>{$Think.lang.ban_user}</span></a></li>
            <li><a href="__URL__/banIP"><span>{$Think.lang.ban_ip}</span></a></li>
        </ul>
    </div>
    <p class="tips">{$Think.lang.ban_user_tips}</p>
    <form name="cpform" method="post" action="__URL__/banUser">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2 ">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.username}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="username" value="" type="text" class="txt"  /></td>
            <td class="vtop tips2"></td>
        </tr>
         <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.email}:</td></tr>
        <tr>
            <td class="vtop rowform"><input name="email" value="" type="text" class="txt"  /></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.ban_type}:</td></tr>
        <tr>
            <td colspan="2" class="vtop rowform">
                <ul onmouseover="altStyle(this);" class="nofloat">
                    <li><input class="radio" type="radio" name="ban_type" value="exclude" title="{$Think.lang.ban_exclude_explain}"> {$Think.lang.ban_exclude}</li>
                    <li><input class="radio" type="radio" name="ban_type" value="no_access" title="{$Think.lang.ban_no_access_explain}"> {$Think.lang.ban_no_access}</li>
                    <li class="checked"><input class="radio" type="radio" name="ban_type" value="read_only" checked="checked" title="{$Think.lang.ban_read_only_explain}"> {$Think.lang.ban_read_only}</li>
                </ul>
            </td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.ban_length}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <select name="ban_length">
                    <option value="0">&nbsp;&gt;&nbsp;{$Think.lang.day_0}</option>
                    <option value="1"> {$Think.lang.day_1}</option>
                    <option value="3"> {$Think.lang.day_3}</option>
                    <option value="5"> {$Think.lang.day_5}</option>
                    <option value="7"> {$Think.lang.day_7}</option>
                    <option value="14"> {$Think.lang.day_14}</option>
                    <option value="30"> {$Think.lang.day_30}</option>
                    <option value="90"> {$Think.lang.day_90}</option>
                    <option value="180"> {$Think.lang.day_180}</option>
                    <option value="365"> {$Think.lang.day_365}</option>
                </select>
            </td>
            <td class="vtop tips2">{$Think.lang.ban_length_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.del_user_question}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <ul onmouseover="altStyle(this);">
                    <li><input class="radio" type="radio" name="del_question" value="1" > {$Think.lang.yes}</li>
                    <li class="checked"><input class="radio" type="radio" name="del_question" value="0" checked> {$Think.lang.no}</li>
                </ul>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.del_user_answer}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <ul onmouseover="altStyle(this);">
                    <li><input class="radio" type="radio" name="del_answer" value="1" > {$Think.lang.yes}</li>
                    <li class="checked"><input class="radio" type="radio" name="del_answer" value="0" checked> {$Think.lang.no}</li>
                </ul>
            </td>
            <td class="vtop tips2"></td>
        </tr>
         <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.del_user_comment}:</td></tr>
        <tr>
            <td class="vtop rowform">
                <ul onmouseover="altStyle(this);">
                    <li><input class="radio" type="radio" name="del_comment" value="1" > {$Think.lang.yes}</li>
                    <li class="checked"><input class="radio" type="radio" name="del_comment" value="0" checked> {$Think.lang.no}</li>
                </ul>
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.ban_reason}:</td></tr>
        <tr>
            <td class="vtop rowform"><textarea  rows="6" onkeyup="textareasize(this)" name="ban_reason" id="ban_reason" cols="50" class="tarea"></textarea></td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="15"><div class="fixsel"><input type="submit" class="btn" name="bansubmit" value="{$Think.lang.submit}" /></div></td></tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
